Skip to content

feat: allow creating wallets with specified directory#140

Merged
ChrisSon15 merged 2 commits intobisq-network:mainfrom
sdmg15:feat/allow-wallet-dir
Mar 31, 2026
Merged

feat: allow creating wallets with specified directory#140
ChrisSon15 merged 2 commits intobisq-network:mainfrom
sdmg15:feat/allow-wallet-dir

Conversation

@sdmg15
Copy link
Copy Markdown
Contributor

@sdmg15 sdmg15 commented Mar 25, 2026

This PR adds a new function new_with_dir which allows specifying the directory where the wallet will be created.

I'm wondering if this should go to public API or keep it strictly callable under tests.

@sdmg15 sdmg15 marked this pull request as draft March 25, 2026 20:00
@sdmg15 sdmg15 force-pushed the feat/allow-wallet-dir branch 2 times, most recently from 3345c1d to 4550c75 Compare March 26, 2026 08:08
@sdmg15 sdmg15 marked this pull request as ready for review March 26, 2026 08:13
Comment thread wallet/src/bmp_wallet.rs Outdated
Comment thread testenv/src/lib.rs Outdated
@sdmg15 sdmg15 force-pushed the feat/allow-wallet-dir branch from 4550c75 to 4ae5cab Compare March 26, 2026 11:20
Comment thread wallet/tests/wallet_integration_test.rs Outdated
Comment thread wallet/tests/wallet_integration_test.rs Outdated
@sdmg15 sdmg15 force-pushed the feat/allow-wallet-dir branch from 4ae5cab to 59a72fc Compare March 26, 2026 17:19
Comment thread wallet/src/bmp_wallet.rs Outdated
@sdmg15 sdmg15 requested review from ChrisSon15 and stejbac March 30, 2026 16:30
Copy link
Copy Markdown
Collaborator

@ChrisSon15 ChrisSon15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make the path where the DB is put mandatory, as it should be for the production code. Test code should just pass in some tempdir-path.

Comment thread wallet/src/bmp_wallet.rs Outdated
Comment thread wallet/src/bmp_wallet.rs Outdated
@sdmg15 sdmg15 force-pushed the feat/allow-wallet-dir branch from 522bff4 to edf58ca Compare March 31, 2026 16:35
@sdmg15 sdmg15 force-pushed the feat/allow-wallet-dir branch from edf58ca to aa5c756 Compare March 31, 2026 16:40
@sdmg15 sdmg15 requested a review from ChrisSon15 March 31, 2026 16:40
Copy link
Copy Markdown
Collaborator

@ChrisSon15 ChrisSon15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@ChrisSon15 ChrisSon15 merged commit 5fa0692 into bisq-network:main Mar 31, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants